function loop1() {
    clearInterval(go);
    div1.addEventListener("click",d1);
}
function loop2() {
    clearInterval(go1);
    div2.addEventListener("click",d2);
}


function d1() {
    if(divTwo.style.backgroundColor === "red")
    {
        divTwo.style.backgroundColor = "blue";
    }
    else{
        divTwo.style.backgroundColor = "red";
    }
}

function d2() {
    if(divOne.style.backgroundColor === "silver")
    {
        divOne.style.backgroundColor = "orange";
    }
    else{
        divOne.style.backgroundColor = "silver";
    }
}